package com.tom.demo.controller.approvalmanagement;

import com.tom.demo.common.annotation.OperaLog;
import com.tom.demo.common.enumeration.OperaTypeEnum;
import com.tom.demo.common.response.Result;
import com.tom.demo.service.approvalmanagement.ApprovalService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags = {"审批管理"})
@RestController
@RequestMapping("/approval")
public class ApprovalController {

    @Resource
    private ApprovalService approvalService;

    @PostMapping(path = "/submission")
    @ApiOperation(value = "提交审批")
    @OperaLog(operaModel = "提交审批",operaType = OperaTypeEnum.ADD,operaDesc = "提交审批单据")
    public Result submission(){
        return Result.success();
    }
}
